package com.ysg.widget.dialog;

import android.Manifest;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.provider.MediaStore;
import android.widget.TextView;

import androidx.fragment.app.FragmentActivity;

import com.ysg.R;
import com.ysg.base.BaseDialog;
import com.ysg.utils.YPermissionUtil;
import com.ysg.utils.YToastUtil;

/**
 */
public class InviteQrcodeDialog extends BaseDialog {
    public interface OnInviteQrcodeListener{
        void onSaveClick();
    }
    private OnInviteQrcodeListener listener;
    public void setOnInviteQrcodeListener(OnInviteQrcodeListener listener){
        this.listener = listener;
    }



    public InviteQrcodeDialog(Context context) {
        super(context);
    }

    private TextView tvSave;

    @Override
    public int getLayoutId() {
        return R.layout.dialog_invite_qrcode;
    }

    public void initView() {
        setCancelable(false);
        setCanceledOnTouchOutside(false);

        tvSave = findViewById(R.id.tvSave);
    }


    @Override
    public void initData() {
    }

    @Override
    public void initListener() {
        tvSave.setOnClickListener((v)->{
            if (listener != null){
                dismiss();
                listener.onSaveClick();
            }
        });
    }






}
